﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<YourStore.Models.Product>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Product Name - <%: Model.Name%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="right">
    <h2>
        <%: Model.Name %>
    </h2>

    <p>
        <img alt="<%: Model.Name %>" src="/Content/Uploads/<%: Model.Image %>"  style="max-width:600px;" />
    </p>

    <div id="product-details">
        <p>
       
            <em>Category:</em>
            <%: Model.Category.Name%>
        </p>
        <p>
            <em>Description:</em>
            <%= Model.Description  %>
           
        <%--   <%: Model.Description%> --%>
           
        </p>
        <p>
            <em>Price: $ </em>
            <%: String.Format("{0:F}", Model.Price) %>
        </p>
        <p class="button">
        <div class="add-cart">
          <a href="<%= Url.Action("AddToCart","ShoppingCart", new { id = Model.ProductId})%>" class="btn_addcart">
              <img src="/Content/Images/add-cart.jpg" width="105" height="30" alt="Add to Cart" />
          </a>
          </div>
        </p>
    </div>
    </div>
</asp:Content>
